﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CoilIntelStorage.Models
{
    /// <summary>
    /// 指令实体类
    /// </summary>
    public class Instruction
    {
        /// <summary>
        /// 序号
        /// </summary>
        private Int32 orderNo;
        /// <summary>
        /// 主键
        /// </summary>
        private Int32 id;
        /// <summary>
        /// 指令发送方 1：系统，2：吊车，3：1#入口，4：2#入口，5：出口
        /// </summary>
        private Int32 start_point;
        /// <summary>
        /// 指令接收方 1：系统，2：吊车
        /// </summary>
        private Int32 end_point;
        /// <summary>
        /// 指令发出时间
        /// </summary>
        private DateTime send_time;
        /// <summary>
        /// socket码
        /// </summary>
        private String socket_code;
        /// <summary>
        /// 指令消息内容
        /// </summary>
        private String content;
        /// <summary>
        /// 指令对应的任务
        /// </summary>
        private Int32 task_id;

        public int Id { get => id; set => id = value; }
        public int Start_point { get => start_point; set => start_point = value; }
        public int End_point { get => end_point; set => end_point = value; }
        public DateTime Send_time { get => send_time; set => send_time = value; }
        public string Socket_code { get => socket_code; set => socket_code = value; }
        public string Content { get => content; set => content = value; }
        public int Task_id { get => task_id; set => task_id = value; }
        public int OrderNo { get => orderNo; set => orderNo = value; }
    }
}
